package com.info33.platform.system.entity;

import com.info33.platform.common.mvc.entity.BaseEntity;
import com.info33.platform.common.validated.SaveValidated;
import com.info33.platform.common.validated.UpdateValidated;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 系统 - 岗位
 *
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysPost extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotBlank(groups = {SaveValidated.class, UpdateValidated.class}, message = "岗位名不能为空")
    @ApiModelProperty(value = "岗位名")
    private String name;

    @ApiModelProperty(value = "岗位索引")
    private String indexes;

}